
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>概要 · classbro-u-center-web-v2.0</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="index.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="src/Utils.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="src/Utils.html">
            
                <a href="src/Utils.html">
            
                    
                    工具集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="src/Config.html">
            
                <a href="src/Config.html">
            
                    
                    环境变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="src/I18n.html">
            
                <a href="src/I18n.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="src/Interceptor.html">
            
                <a href="src/Interceptor.html">
            
                    
                    拦截器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="src/Vuex.html">
            
                <a href="src/Vuex.html">
            
                    
                    Vuex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="src/Api.html">
            
                <a href="src/Api.html">
            
                    
                    接口文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="src/Icon.html">
            
                <a href="src/Icon.html">
            
                    
                    图标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="src/Xss.html">
            
                <a href="src/Xss.html">
            
                    
                    Xss
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="src/Permission.html">
            
                <a href="src/Permission.html">
            
                    
                    菜单&权限校验
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >概要</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="classbro-u-center-web-v20">classbro-u-center-web-v2.0</h1>
<blockquote>
<h6 id="u-center-web-&#x9879;&#x76EE;&#x8FC1;&#x79FB;-&#x91CD;&#x6784;">u-center-web &#x9879;&#x76EE;&#x8FC1;&#x79FB; &#x91CD;&#x6784;</h6>
<h6 id="node&#x7248;&#x672C;-10160">node&#x7248;&#x672C; 10.16.0</h6>
</blockquote>
<h6 id=""> </h6>
<h4 id="&#x6982;&#x8981;">&#x6982;&#x8981;</h4>
<blockquote>
<p>webpack&#x7248;&#x672C;2 &#x8FC1;&#x79FB;&#x4E3A;&#x7248;&#x672C;4, &#x7EDF;&#x4E00;&#x914D;&#x7F6E;&#x6587;&#x4EF6; <a href="https://www.webpackjs.com/configuration/" target="_blank">vue.config.js</a></p>
<p>&#x542F;&#x52A8;&#x811A;&#x672C;&#xFF0C;node&#x8FDB;&#x7A0B;&#x5206;&#x53D1; <code>&#x672C;&#x5730;</code> <code>&#x9884;&#x53D1;</code> <code>&#x751F;&#x4EA7;</code> &#x73AF;&#x5883;&#x53D8;&#x91CF;</p>
<p>axios + webpack proxy &#x89E3;&#x51B3;&#x524D;&#x7AEF;&#x8DE8;&#x57DF;&#xFF0C;&#x53EF;&#x591A;&#x8DEF;&#x7531;&#x3001;&#x591A;&#x4EE3;&#x7406;&#x914D;&#x7F6E;&#x8BF7;&#x6C42;&#x3002;</p>
<p>&#x6DFB;&#x52A0;<code>eslint</code> &#x4EE3;&#x7801;&#x68C0;&#x6D4B; &#x3001;<code>Xss</code>&#x9632;&#x8DE8;&#x7AD9;&#x811A;&#x672C;&#x653B;&#x51FB;</p>
<p>Layout&#x91CD;&#x6784;</p>
<p>&#x56FD;&#x9645;&#x5316;&#x652F;&#x6301;</p>
<p>&#x83DC;&#x5355;&#x6E32;&#x67D3;&#x3001;&#x6743;&#x9650;&#x6821;&#x9A8C;&#x652F;&#x6301;</p>
<p>&#x62E6;&#x622A;&#x5668; + &#x767D;&#x540D;&#x5355;&#x529F;&#x80FD;</p>
<p>&#x7EDF;&#x4E00;<code>&#x5DE5;&#x5177;&#x96C6;</code>&#x3001;<code>&#x679A;&#x4E3E;</code>&#x3001;<code>vuex</code>&#x3001;<code>&#x56FD;&#x9645;&#x5316;</code>&#x914D;&#x7F6E;&#x89C4;&#x8303;</p>
</blockquote>
<h4 id="vscode&#x63D2;&#x4EF6;&#x63A8;&#x8350;">Vscode&#x63D2;&#x4EF6;&#x63A8;&#x8350;</h4>
<blockquote>
<p><strong>Vetur</strong> &#x56E0;&#x4E3A;eslint&#x7684;&#x652F;&#x6301;&#xFF0C;&#x5BF9;&#x4E8E;&#x4EE3;&#x7801;&#x683C;&#x5F0F;&#x89C4;&#x8303;&#xFF0C;&#x5EFA;&#x8BAE;&#x7EDF;&#x4E00;&#x7528; Vetur&#x5DE5;&#x5177;&#x683C;&#x5F0F;&#x5316;&#x4EE3;&#x7801;</p>
<p><strong>TODO Highlight</strong>&#x3001;<strong>Todo Tree</strong> &#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#x53EF;&#x80FD;&#x4F1A;&#x9047;&#x5230;&#x6682;&#x65F6;&#x65E0;&#x6CD5;&#x89E3;&#x51B3;&#xFF0C;&#x5F85;&#x5B9A;&#x7684;&#x60C5;&#x51B5;&#x3002;</p>
</blockquote>
<h4 id="&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;">&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h4>
<pre class="language-"><code class="lang-bash"><span class="token builtin class-name">.</span>
&#x251C;&#x2500;&#x2500; babel.config.js
&#x251C;&#x2500;&#x2500; config
&#x2502;   &#x2514;&#x2500;&#x2500; index.js        <span class="token comment"># &#x73AF;&#x5883;&#x53D8;&#x91CF;</span>
&#x251C;&#x2500;&#x2500; deploy.sh
&#x251C;&#x2500;&#x2500; docker-compose.yml
&#x251C;&#x2500;&#x2500; Dockerfile
&#x251C;&#x2500;&#x2500; jsconfig.json        <span class="token comment"># vscode&#x7F16;&#x8F91;&#x5668;&#x4E0B;js&#x7684;&#x663E;&#x793A;&#x5F15;&#x7528;&#x6587;&#x4EF6;</span>
&#x251C;&#x2500;&#x2500; LICENSE
&#x251C;&#x2500;&#x2500; nginx
&#x2502;   &#x2514;&#x2500;&#x2500; default.conf
&#x251C;&#x2500;&#x2500; package.json        <span class="token comment"># &#x8BF4;&#x660E;&#x6587;&#x4EF6;</span>
&#x251C;&#x2500;&#x2500; public
&#x2502;   &#x251C;&#x2500;&#x2500; favicon.ico
&#x2502;   &#x2514;&#x2500;&#x2500; index.html
&#x251C;&#x2500;&#x2500; README.md
&#x251C;&#x2500;&#x2500; src
&#x2502;   &#x251C;&#x2500;&#x2500; api                <span class="token comment"># &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; App.vue            <span class="token comment"># &#x6839;&#x7EC4;&#x4EF6;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; assets            <span class="token comment"># &#x8D44;&#x6E90;&#x6587;&#x4EF6;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; components        <span class="token comment"># &#x516C;&#x5171;&#x7EC4;&#x4EF6;&#x5E93;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; directives        <span class="token comment"># &#x5168;&#x5C40;&#x6307;&#x4EE4;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; filters            <span class="token comment"># &#x5168;&#x5C40;&#x8FC7;&#x6EE4;&#x5668;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; icons            <span class="token comment"># svg&#x76EE;&#x5F55;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; lang            <span class="token comment"># &#x56FD;&#x9645;&#x5316;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; layout
&#x2502;   &#x251C;&#x2500;&#x2500; main.js            <span class="token comment"># &#x5165;&#x53E3;&#x6587;&#x4EF6;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; mixins            <span class="token comment"># &#x5168;&#x5C40;&#x591A;&#x7EE7;&#x627F;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; router            <span class="token comment"># &#x8DEF;&#x7531;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; store            <span class="token comment"># vuex</span>
&#x2502;   &#x251C;&#x2500;&#x2500; styles            <span class="token comment"># &#x516C;&#x5171;&#x6837;&#x5F0F;</span>
&#x2502;   &#x251C;&#x2500;&#x2500; utils            <span class="token comment"># &#x5DE5;&#x5177;&#x96C6;</span>
&#x2502;   &#x2514;&#x2500;&#x2500; views            <span class="token comment"># &#x89C6;&#x56FE;&#x6587;&#x4EF6;&#x5939;</span>
&#x251C;&#x2500;&#x2500; vue.config.js        <span class="token comment"># webpack&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
&#x2514;&#x2500;&#x2500; yarn.lock
</code></pre>
<h4 id="&#x7F13;&#x5B58;&#x5904;&#x7406;">&#x7F13;&#x5B58;&#x5904;&#x7406;</h4>
<blockquote>
<p>&#x5F53;&#x65B0;&#x5EFA;&#x9875;&#x9762;&#x6216;&#x8005;&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x7684;&#x65F6;&#x5019;&#x3002;&#x6709;&#x65F6;&#x4F1A;&#x9047;&#x5230;&#x4E00;&#x4E9B; <em>undefined</em> &#x6216;&#x8005;&#x6587;&#x4EF6;&#x4E0D;&#x5B58;&#x5728;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
<p>&#x8FD9;&#x7C7B;&#x60C5;&#x51B5;&#x4E0B;&#x53EF;&#x901A;&#x8FC7;&#x4E0B;&#x9762;&#x4E09;&#x79CD;&#x65B9;&#x5F0F;&#x3002;</p>
</blockquote>
<ul>
<li>webpack&#x901A;&#x8FC7;<code>cache-loader</code> &#x4F1A;&#x9ED8;&#x8BA4;&#x4E3A; Vue/Babel/TypeScript &#x7F16;&#x8BD1;&#x5F00;&#x542F;&#x3002;&#x6587;&#x4EF6;&#x4F1A;&#x7F13;&#x5B58;&#x5728; <code>node_modules/.cache</code> &#x4E2D;&#x3002;&#x901A;&#x8FC7;&#x547D;&#x4EE4; <code>rm -rf node_modules/.cache</code> &#x6216;&#x8005;&#x624B;&#x52A8;&#x5728;<code>node_modules</code>&#x4E0B;&#x627E;&#x5230;<code>.cache</code>&#x6587;&#x4EF6;&#xFF0C;&#x5220;&#x9664;&#x6389;&#x3002;</li>
<li>&#x901A;&#x8FC7;&#x5FEB;&#x6377;&#x952E;<code>ctrl</code> + <code>shift</code> + <code>delete</code> &#x6E05;&#x7406;&#x6D4F;&#x89C8;&#x5668;&#x7F13;&#x5B58;&#x3002;</li>
<li>&#x901A;&#x8FC7;&#x5FEB;&#x6377;&#x952E; <code>ctrl</code> + <code>f5</code> &#x5F3A;&#x5236;&#x5237;&#x65B0;&#x6D4F;&#x89C8;&#x5668;&#x3002;</li>
</ul>
<h4 id="&#x89C4;&#x8303;">&#x89C4;&#x8303;</h4>
<blockquote>
<p>&#x7C7B;&#x4F3C;<code>styles</code>&#x3001;<code>components</code>&#x3001;<code>filter</code>&#x3001;<code>directive</code>&#x3001;<code>mixins</code> &#x7B49;&#x5168;&#x5C40;&#x529F;&#x80FD;&#xFF0C;&#x5C3D;&#x91CF;&#x5C01;&#x88C5;&#x4F7F;&#x7528;&#x9891;&#x7387;&#x6BD4;&#x8F83;&#x9AD8;&#x7684;&#x3002;&#x4EC5;&#x4EC5;&#x4F7F;&#x7528;&#x4E00;&#x4E24;&#x6B64;&#x7684;&#x4E0D;&#x8981;&#x62BD;&#x8C61;&#x51FA;&#x6765;&#xFF0C;&#x5EFA;&#x8BAE;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x91CC;&#x4F7F;&#x7528;&#x3002;</p>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x7EDF;&#x4E00;&#x5C01;&#x88C5;&#x5230; <code>src/styles/custom.scss</code> &#x91CC;&#xFF0C;&#x907F;&#x514D;&#x5F71;&#x54CD;&#x5176;&#x4ED6;&#x6A21;&#x5757;&#x3002;</p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="src/Utils.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 工具集">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"概要","level":"1.1","depth":1,"next":{"title":"工具集","level":"1.2","depth":1,"path":"src/Utils.md","ref":"src/Utils.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism","livereload"],"styles":{"website":"index.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"livereload":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"classbro-u-center-web-v2.0","language":"zh-hans","gitbook":"3.2.3","description":"u-center-web 项目迁移 重构"},"file":{"path":"README.md","mtime":"2020-07-27T06:31:51.563Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-27T06:50:03.177Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

